<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body style="font-family:Arial, Helvetica, sans-serif; font-size:12px;">
<h1>
Date: <?php echo $this->dateToday?><br /> 
Shop ID<?php echo $this->idShop?>: 
Category ID: <?php echo $this->idCate?><br /> 
</h1>
<table width="600" border="1" cellspacing="0" cellpadding="3" bgcolor="#333333">
  <tr>
    <td bgcolor="#FFFFFF" style="width:150px" >Code</td>
    <td bgcolor="#FFFFFF" style="width:350px" >Description</td>
    <td bgcolor="#FFFFFF" style="width:50px" >SYS</td>
    <td bgcolor="#FFFFFF" style="width:50px" >ACT</td>
  </tr> 
<?php
foreach($this->pList as $key => $v){
?>  
  <tr>
    <td bgcolor="#FFFFFF"><a href="/repairparts/part-move-history-shop/shop/<?php echo $this->idShop?>?part_code=<?php echo $v['code_product']?>" target="_blank" ><?php echo $v['code_product']?></a></td>
    <td bgcolor="#FFFFFF"><?php echo $v['title_product']?></td>
    <td bgcolor="#FFFFFF">
    <?php
    $rStock = new Model_DbTable_Pr_Prstock();
	echo $rStock->getShopStock($v['id_product'],$this->idShop);
	?>
    </td>
    <td bgcolor="#FFFFFF">&nbsp;</td>
  </tr>   
<?php
}
?>
</table>

</body>
</html>
